﻿namespace RJi.FanucInterface3.Common;

public interface IFanucRbtBuilder
{
    IFanucRbt Build();

    IFanucRbtBuilder EnableAutoRefresh(int milliseconds);

    IFanucRbtBuilder SetHost(string? hostname, string? name = null);

    IFanucRbtBuilder WithIO(Action<IRbtIOWrapper> config);

    IFanucRbtBuilder WithPrimaryTable(Action<IDataTableWrapper> config);

    IFanucRbtBuilder WithSecondaryTable(Action<IDataTableWrapper> config);

    IFanucRbtBuilder WithTimeout(int milliseconds);
}